/* ==========================================================================
   IK Blockexplorer Design System & Stylesheet
   Theme: Royal Purple Gradient & Futuristic Consensus UI
   ========================================================================== */

:root {
  --bg-dark: #0f071f;
  --bg-card: rgba(27, 13, 54, 0.75);
  --bg-card-border: rgba(147, 51, 234, 0.22);
  --bg-card-hover: rgba(43, 20, 84, 0.85);

  --primary-purple: #9333ea;
  --primary-purple-light: #c084fc;
  --primary-purple-dark: #6b21a8;
  --primary-deep: #2e1065;

  --accent-gold: #fbbf24;
  --accent-gold-dark: #d97706;
  --accent-emerald: #10b981;
  --accent-emerald-light: #6ee7b7;
  --accent-amber: #f59e0b;
  --accent-blue: #38bdf8;
  --accent-red: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(147, 51, 234, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(217, 119, 6, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
}

.bold {
  font-weight: 700;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 7, 31, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-card-border);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-wrap {
  position: relative;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97706, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(147, 51, 234, 0.45);
  border: 2px solid rgba(251, 191, 36, 0.4);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.brand-pulse {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, 0.5);
  animation: logoPulse 2.5s infinite;
  pointer-events: none;
}

@keyframes logoPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.brand-highlight {
  color: var(--accent-gold);
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-purple-light);
  letter-spacing: 1.2px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.node-status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(27, 13, 54, 0.8);
  border: 1px solid rgba(147, 51, 234, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

.status-dot.online {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.status-dot.offline {
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
}

.status-latency {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

/* Network Switcher */
.network-switcher {
  display: flex;
  background: rgba(15, 7, 31, 0.95);
  border: 1px solid var(--bg-card-border);
  padding: 3px;
  border-radius: var(--radius-md);
  gap: 2px;
}

.network-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.network-btn:hover {
  color: #fff;
  background: rgba(147, 51, 234, 0.15);
}

.network-btn.active {
  background: linear-gradient(135deg, #7e22ce, #9333ea);
  color: #fff;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.4);
}

.net-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.net-dot.mainnet { background: #10b981; }
.net-dot.testnet { background: #f59e0b; }
.net-dot.testnet2 { background: #38bdf8; }

.checklist-header-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.checklist-header-btn:hover {
  background: #22c55e;
  color: #064e22;
  border-color: #22c55e;
}

.download-app-btn,
.mobile-only-download-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.45rem 0.85rem;
  min-height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.download-app-btn:hover,
.mobile-only-download-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.42);
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  .download-app-btn,
  .mobile-only-download-btn {
    display: inline-flex;
    min-height: 42px;
  }
}

html.is-mobile-device .download-app-btn,
html.is-mobile-device .mobile-only-download-btn {
  display: inline-flex;
}

html.is-desktop-device .download-app-btn,
html.is-desktop-device .mobile-only-download-btn {
  display: none;
}

.icon-btn {
  background: rgba(27, 13, 54, 0.8);
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(147, 51, 234, 0.25);
  color: #fff;
  border-color: var(--primary-purple);
}

.spin-icon.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Main Container
   ========================================================================== */

.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

/* Error Banner */
.error-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #fca5a5;
}

.retry-btn {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.retry-btn:hover {
  opacity: 0.85;
}

/* ==========================================================================
   Hero Section & Search Bar
   ========================================================================== */

.hero-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #c084fc, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.ledger-pill-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ledger-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-caption {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.8px;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
}

/* Search Bar & Recent Searches Dropdown */
.search-container {
  position: relative;
  width: 100%;
  z-index: 40;
}

.search-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(27, 13, 54, 0.9);
  border: 1px solid rgba(147, 51, 234, 0.4);
  border-radius: var(--radius-lg);
  padding: 0.4rem 0.55rem 0.4rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}

.search-bar-wrap:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
}

.search-icon {
  color: var(--primary-purple-light);
  display: flex;
  align-items: center;
  margin-right: 0.35rem;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.4rem 0;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 0.45rem;
  line-height: 1;
  transition: color var(--transition-fast);
}

.search-clear-btn:hover {
  color: #fff;
}

.search-submit-btn {
  background: linear-gradient(135deg, #7e22ce, #9333ea);
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.search-submit-btn:hover {
  background: linear-gradient(135deg, #9333ea, #a855f7);
  border-color: rgba(251, 191, 36, 0.55);
}

.recent-searches-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(18, 9, 39, 0.98);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.recent-searches-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: rgba(147, 51, 234, 0.14);
  border-bottom: 1px solid rgba(147, 51, 234, 0.28);
}

.recent-searches-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--accent-gold);
}

.recent-count-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.recent-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.recent-clear-btn:hover {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
}

.recent-searches-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.recent-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.recent-search-item:hover,
.recent-search-item.active {
  background: rgba(147, 51, 234, 0.24);
  border-color: rgba(192, 132, 252, 0.38);
}

.recent-search-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.recent-kind-badge {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.recent-kind-badge.address {
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.recent-kind-badge.tx {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.recent-query-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-search-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.recent-time-text {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.recent-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.recent-remove-btn:hover {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.16);
}

.search-lookup-card {
  margin-top: 0.75rem;
  background: rgba(27, 13, 54, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.search-lookup-card.error {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(45, 13, 34, 0.85);
}

.lookup-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.lookup-top-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lookup-summary {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

.lookup-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
}

.lookup-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lookup-action-btn {
  background: rgba(147, 51, 234, 0.24);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lookup-action-btn:hover {
  background: rgba(147, 51, 234, 0.42);
  border-color: var(--accent-gold);
}

.lookup-dismiss-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  line-height: 1;
}

.lookup-dismiss-btn:hover {
  color: #fff;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.section-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(147, 51, 234, 0.2);
  border: 1px solid rgba(147, 51, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-purple-light);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.section-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.live-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent-emerald-light);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* ==========================================================================
   Metrics Grid (6 Cards)
   ========================================================================== */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
}

.metric-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 51, 234, 0.55);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.2);
}

.metric-card.primary {
  border-color: rgba(147, 51, 234, 0.6);
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.45), rgba(27, 13, 54, 0.8));
}

.metric-card.gold {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.35), rgba(27, 13, 54, 0.8));
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.badge-purple { background: rgba(147, 51, 234, 0.25); color: var(--primary-purple-light); }
.badge-amber { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.badge-emerald { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.badge-blue { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }
.badge-gold { background: rgba(251, 191, 36, 0.25); color: #fde68a; }
.badge-purple-dark { background: rgba(107, 33, 168, 0.3); color: #d8b4fe; }

.metric-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.metric-unit {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.metric-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.formula-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* ==========================================================================
   Operations & Transactions Section
   ========================================================================== */

.operations-section {
  display: flex;
  flex-direction: column;
}

.feed-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.poll-interval-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--bg-card-border);
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-purple-light);
  animation: pulseDot 1.5s infinite;
}

.stream-toggle-btn {
  background: rgba(27, 13, 54, 0.8);
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.stream-toggle-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald-light);
}

.toggle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

/* Table Card */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.ops-table th {
  background: rgba(15, 7, 31, 0.8);
  padding: 0.9rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--bg-card-border);
}

.ops-table td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}

.ops-table tbody tr {
  transition: background var(--transition-fast);
}

.ops-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.ops-table tbody tr.new-row {
  animation: highlightRow 2s ease-out;
}

@keyframes highlightRow {
  0% { background: rgba(147, 51, 234, 0.35); }
  100% { background: transparent; }
}

/* Account Column */
.account-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4c1d95, #7e22ce);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-address {
  font-family: var(--font-mono);
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

.account-address:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.copy-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.copy-icon-btn:hover {
  color: var(--accent-gold);
}

/* Operation Column */
.op-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.op-type-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.type-payment { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.type-create_account { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.type-change_trust { background: rgba(147, 51, 234, 0.2); color: #c084fc; }
.type-claim { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.type-contract { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.type-default { background: rgba(100, 116, 139, 0.2); color: #cbd5e1; }

.op-desc {
  font-size: 0.85rem;
  color: #f8fafc;
  font-weight: 500;
}

/* Ledger Column */
.ledger-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  display: inline-block;
}

/* Amount Column */
.amount-cell {
  display: flex;
  align-items: center;
}

.amount-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(34, 197, 94, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* Time Column */
.time-cell {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
}

.time-cell.live-recent {
  color: var(--accent-emerald-light);
  font-weight: 600;
}

/* Table Footer */
.table-footer {
  padding: 0.85rem 1.25rem;
  background: rgba(15, 7, 31, 0.7);
  border-top: 1px solid var(--bg-card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Skeletons */
.skeleton-line {
  height: 24px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(27, 13, 54, 0.95);
  border: 1px solid var(--accent-gold);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  z-index: 200;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 900px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Transaction Detail Modal Popup
   ========================================================================== */

.ops-table tbody tr.op-row {
  cursor: pointer;
}

.ops-table tbody tr.op-row:hover {
  background: rgba(147, 51, 234, 0.16);
}

.tx-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 4, 20, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.tx-modal-card {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(27, 13, 54, 0.98), rgba(15, 7, 31, 0.98));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tx-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--bg-card-border);
  background: rgba(15, 7, 31, 0.75);
}

.tx-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.tx-modal-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(147, 51, 234, 0.22);
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tx-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.tx-modal-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tx-status-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.tx-status-pill.confirmed {
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.tx-status-pill.failed {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.tx-status-pill.loading {
  background: rgba(251, 191, 36, 0.16);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.tx-net-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.22);
  color: var(--primary-purple-light);
  border: 1px solid rgba(147, 51, 234, 0.35);
}

.tx-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--bg-card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.tx-modal-close:hover {
  color: #fff;
  border-color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.12);
}

.tx-modal-body {
  padding: 1.25rem 1.35rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tx-modal-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(147, 51, 234, 0.14);
  border: 1px solid rgba(192, 132, 252, 0.25);
  font-size: 0.82rem;
  color: var(--primary-purple-light);
}

.tx-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(251, 191, 36, 0.25);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tx-modal-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.8rem;
}

.tx-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.tx-detail-row {
  background: rgba(15, 7, 31, 0.65);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tx-detail-row.full {
  grid-column: 1 / -1;
}

.tx-detail-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tx-detail-value-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.tx-detail-value {
  font-size: 0.82rem;
  color: var(--text-primary);
  word-break: break-all;
}

.tx-detail-value.gold {
  color: var(--accent-gold);
  font-weight: 700;
}

.tx-detail-value.emerald {
  color: var(--accent-emerald-light);
  font-weight: 700;
}

.tx-memo-type {
  font-size: 0.62rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.tx-memo-box {
  font-size: 0.82rem;
  color: var(--text-primary);
  background: rgba(27, 13, 54, 0.7);
  border: 1px dashed rgba(147, 51, 234, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  word-break: break-word;
}

.tx-memo-box.empty {
  color: var(--text-dim);
  font-style: italic;
}

.tx-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.35rem;
  border-top: 1px solid var(--bg-card-border);
  background: rgba(15, 7, 31, 0.75);
}

.tx-source-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.tx-modal-done-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.14);
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tx-modal-done-btn:hover {
  background: rgba(251, 191, 36, 0.25);
}

@media (max-width: 600px) {
  .tx-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Wallet Address QR Code Generator Section
   ========================================================================== */

.qr-section {
  display: flex;
  flex-direction: column;
}

.qr-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 1.75rem;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.qr-controls-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.qr-input-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
}

.qr-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.qr-address-input {
  flex: 1;
  min-width: 0;
  background: rgba(15, 7, 31, 0.9);
  border: 1px solid rgba(147, 51, 234, 0.45);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: #fff;
  font-size: 0.86rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.qr-address-input::placeholder {
  color: var(--text-dim);
  font-family: var(--font-sans);
}

.qr-address-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.2);
}

.qr-generate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  min-height: 46px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #11092b;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.qr-generate-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.qr-generate-btn:active {
  transform: translateY(0);
}

.qr-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.qr-validation-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.16);
  border: 1px solid rgba(147, 51, 234, 0.35);
  color: var(--primary-purple-light);
}

.qr-validation-pill.valid {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald-light);
}

.qr-validation-pill.danger {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.qr-link-btn {
  background: transparent;
  border: none;
  color: var(--accent-gold);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qr-link-btn:hover {
  color: #fde68a;
}

.qr-error-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
}

.qr-helper-box {
  background: rgba(15, 7, 31, 0.65);
  border: 1px dashed rgba(147, 51, 234, 0.32);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.qr-helper-box strong {
  color: var(--text-primary);
}

.qr-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.qr-frame {
  width: 248px;
  height: 248px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 3px solid rgba(251, 191, 36, 0.75);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.qr-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  background: rgba(15, 7, 31, 0.94);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 1rem;
  font-size: 0.78rem;
}

.qr-placeholder svg {
  color: var(--accent-gold);
}

.qr-canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  border-radius: 6px;
}

.qr-encoded-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.qr-encoded-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-dim);
}

.qr-encoded-address {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: var(--accent-gold);
  background: rgba(15, 7, 31, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  word-break: break-all;
}

.qr-actions-row {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}

.qr-action-btn {
  flex: 1;
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg-card-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.qr-action-btn:hover {
  border-color: var(--primary-purple-light);
  background: rgba(147, 51, 234, 0.22);
}

.qr-action-btn.primary {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.16);
  color: var(--accent-emerald-light);
}

.qr-action-btn.primary:hover {
  background: rgba(16, 185, 129, 0.3);
}

@media (max-width: 860px) {
  .qr-card {
    grid-template-columns: 1fr;
  }

  .qr-input-row {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav-container {
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
  }

  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .network-switcher {
    flex-wrap: wrap;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .search-bar-wrap {
    flex-wrap: wrap;
  }

  .search-bar-wrap .search-input {
    flex: 1 1 180px;
    width: auto;
  }

  .search-bar-wrap .search-submit-btn,
  .search-bar-wrap .search-btn {
    width: 100%;
    min-height: 44px;
  }

  .qr-actions-row {
    flex-wrap: wrap;
  }

  .qr-action-btn {
    min-width: 120px;
  }

  .qr-frame {
    width: 210px;
    height: 210px;
  }
}

/* ==========================================================================
   Top 10 Network Validators Leaderboard Section
   ========================================================================== */

.validators-section {
  display: flex;
  flex-direction: column;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--bg-card-border);
}

.rank-pill.rank-top-1 {
  background: rgba(251, 191, 36, 0.22);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.55);
}

.rank-pill.rank-top-2 {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  border-color: rgba(203, 213, 225, 0.45);
}

.rank-pill.rank-top-3 {
  background: rgba(245, 158, 11, 0.18);
  color: #fdba74;
  border-color: rgba(245, 158, 11, 0.45);
}

.validator-node-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.validator-identity {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.validator-id {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.validator-handle {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.validator-role-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.validator-role-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(147, 51, 234, 0.2);
  color: var(--primary-purple-light);
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.validator-quorum {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.uptime-cell {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 120px;
}

.uptime-pct {
  font-size: 0.82rem;
  font-weight: 700;
}

.uptime-pct.uptime-high {
  color: var(--accent-emerald-light);
}

.uptime-pct.uptime-mid {
  color: var(--accent-gold);
}

.uptime-pct.uptime-low {
  color: #fca5a5;
}

.uptime-bar-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.uptime-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.uptime-bar-fill.uptime-high {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.uptime-bar-fill.uptime-mid {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.uptime-bar-fill.uptime-low {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.staked-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--accent-gold);
  white-space: nowrap;
}

.home-feed-section {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}

@media (max-width: 900px) {
  .home-feed-section {
    grid-template-columns: 1fr;
  }
}

.home-banner-card,
.home-updates-card {
  background: rgba(23, 12, 52, 0.85);
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.home-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.home-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(245, 166, 35, 0.18);
  border: 1px solid rgba(245, 166, 35, 0.45);
  color: var(--accent-gold);
}

.home-badge-pill.verified {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}

.home-banner-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.home-banner-iframe {
  width: 100%;
  min-height: 175px;
  border: none;
  border-radius: var(--radius-md);
  background: #160936;
}

.home-banner-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.home-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, #f5a623, #fb923c);
  color: #11092b;
  border: none;
  cursor: pointer;
}

.home-cta-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.home-ann-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.home-ann-item {
  background: rgba(15, 7, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}


