/* ESTILO OFICIAL BITMUNDI ECOSYSTEM */
:root {
  --bg-dark: #0a0e17;
  --bg-card: rgba(18, 25, 40, 0.75);
  --bg-card-hover: rgba(26, 36, 58, 0.85);
  --border-color: rgba(0, 242, 254, 0.15);
  --border-gold: rgba(247, 183, 49, 0.25);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --cyan-neon: #00f2fe;
  --cyan-glow: rgba(0, 242, 254, 0.35);
  --gold-warm: #f7b731;
  --gold-glow: rgba(247, 183, 49, 0.35);
  --green-live: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.08) 0%, transparent 60%),
                    radial-gradient(circle at 90% 80%, rgba(247, 183, 49, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 14, 23, 0.88);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text-main);
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-warm);
}

.nav-brand span {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #fff, var(--cyan-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-brand .ticker {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: rgba(247, 183, 49, 0.15);
  color: var(--gold-warm);
  border: 1px solid var(--gold-warm);
  border-radius: 6px;
  font-weight: 700;
  margin-left: 0.4rem;
  -webkit-text-fill-color: var(--gold-warm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* SELETOR DE IDIOMAS */
.lang-selector-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(18, 25, 40, 0.9);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
}

.lang-selector {
  background: transparent;
  color: var(--cyan-neon);
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.lang-selector option {
  background: #0a0e17;
  color: #fff;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--green-live);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--green-live);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green-live);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* LAYOUT GERAL */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  flex: 1;
  width: 100%;
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f7b731, #f39c12);
  color: #000;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(247, 183, 49, 0.5);
}

.btn-secondary {
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan-neon);
  border: 1px solid var(--cyan-neon);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.15);
}

.btn-secondary:hover {
  background: rgba(0, 242, 254, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--cyan-glow);
}

/* CARDS E GRIDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 950px) {
  .grid-2 { grid-template-columns: 1fr; }
  .navbar { flex-wrap: wrap; gap: 1rem; }
  .nav-links { order: 3; width: 100%; justify-content: center; }
}

/* TABELAS */
.table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th {
  background: rgba(18, 25, 40, 0.95);
  padding: 1rem;
  color: var(--cyan-neon);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

tr:hover td {
  background: rgba(0, 242, 254, 0.04);
}

.hash-link {
  color: var(--cyan-neon);
  text-decoration: none;
  font-family: monospace;
}

.hash-link:hover {
  text-decoration: underline;
}

.badge-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green-live);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-gold {
  background: rgba(247, 183, 49, 0.15);
  color: var(--gold-warm);
  border: 1px solid rgba(247, 183, 49, 0.4);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border-color);
  background: rgba(10, 14, 23, 0.95);
  padding: 2.5rem 2rem;
  margin-top: auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--cyan-neon);
}
