:root {
  --bs-primary: #8729A2;
  --bs-primary-rgb: 135, 41, 162;
}

.btn-primary {
  background-color: #8729A2 !important;
  border-color: #8729A2 !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus,
.btn-primary:focus-visible,
.btn-primary:visited {
  background-color: #6d2286 !important;
  border-color: #6d2286 !important;
  color: #fff !important;
  box-shadow: 0 0 0 0.25rem rgba(135, 41, 162, 0.5) !important;
}

.btn-primary:focus-visible {
  outline: none !important;
}

.btn:focus,
.btn:active {
  outline: none !important;
  box-shadow: none !important;
}

.link-primary {
  color: #8729A2;
}

.text-primary {
  color: #8729A2 !important;
}

.bg-primary {
  background-color: #8729A2 !important;
}

.border-primary {
  border-color: #8729A2 !important;
}

html, body, .container {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.hero-section {
    position: relative;
    height: 100vh;
    color: #fff;
    text-align: center;
    overflow: hidden;
    background-color: black;
}

.carousel-item {
{
    #height: 100%;
} display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-inner {
    width: 100%;
    height: 100%;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 2rem;
}

.row.g-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.col-md-4 {
    display: flex;
    justify-content: stretch;
    margin-bottom: 1.5rem;
}

.transition-transform {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transition-transform:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-body {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.badge {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.badge.bg-success {
    background-color: #28a745;
}

.badge.bg-primary {
    background-color: #007bff;
}

.badge.bg-danger {
    background-color: #dc3545;
}

.badge.bg-secondary {
    background-color: #6c757d;
}

.badge.bg-dark {
    background-color: #343a40;
}

.hero-section {
    position: relative;
    width: 100vw;
    height: 75vh;
    overflow: hidden;
}

table.dataTable {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

table.dataTable thead {
    background-color: #222;
    color: #fff;
}

table.dataTable tbody tr {
    background-color: #1a1a1a;
}

table.dataTable tbody tr:hover {
    background-color: #333;
}

.dataTables_filter input,
.dataTables_length select {
    background-color: #000;
    color: #fff;
    border: 1px solid #444;
}

.table,
.table-striped,
.table-hover,
table.dataTable {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #333 !important;
}

.table thead,
table.dataTable thead {
    background-color: #111 !important;
    color: #fff !important;
    border-bottom: 1px solid #444 !important;
}

.table tbody tr,
table.dataTable tbody tr {
    background-color: #000 !important;
    color: #fff !important;
}

.table-hover tbody tr:hover,
table.dataTable tbody tr:hover {
    background-color: #222 !important;
}

.table td,
.table th,
table.dataTable td,
table.dataTable th {
    border-color: #333 !important;
}

table code {
    color: #fff !important;
}

.table-dark-mode,
.table-dark-mode thead,
.table-dark-mode tbody,
.table-dark-mode tr,
.table-dark-mode th,
.table-dark-mode td {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #333 !important;
}

.table-dark-mode tbody tr:hover {
    background-color: #111 !important;
}

.table-dark-mode code {
    color: #ff2388 !important;
}

.footer {
    margin: 0}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 123, 255, 0.25);
  }
}

.text-gradient {
  background: linear-gradient(135deg, #0dcaf0, #007bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-btn:hover {
  box-shadow: 0 0 10px rgba(13, 202, 240, 0.4);
  transition: all 0.25s ease-in-out;
}

.launch-box {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(0, 123, 255, 0.15);
  box-shadow: 0 0 40px rgba(0, 123, 255, 0.08);
  animation: pulse-glow 3s ease-in-out infinite;
  padding: 3rem;
  border-radius: 1rem;
  margin: 3rem auto;
  text-align: center;
}

.launch-box .content {
  position: relative;
  z-index: 1;
}

.launch-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  pointer-events: none;
  border: 2px solid rgba(0, 123, 255, 0.15);
  box-shadow: 0 0 40px rgba(0, 123, 255, 0.08);
  animation: pulse-glow 3s ease-in-out infinite;
  z-index: 0;
}

body.fade-in {
  opacity: 0;
}

body.fade-in.show {
  opacity: 1;
  transition: opacity 1s ease;
}

body.fade-out {
  opacity: 0;
  transition: opacity 1s ease;
}

.fade-in-card {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chart-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
}

.chart-container canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 100%;
  max-width: 100%;
  display: block;
}

.badge-dropdown {
  background-color: #222 !important;
  color: white !important;
  border: none;
  padding: 0.3rem 0.6rem;
  font-weight: 600;
  border-radius: 0.75rem;
  appearance: none;
  cursor: pointer;
  text-align: center;
  min-width: 100px;
}

.badge-dropdown option {
  padding: 0.5rem;
  font-weight: 500;
}

.form-control::placeholder,
.form-select::placeholder {
  color: #fff !important;
  opacity: 1 !important;
}

.form-control:focus {
    background-color: black;
    color: white;
}

.modal.modal-drawer .modal-dialog {
  position: fixed;
  top: 0;
  right: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  max-width: 85%;
  transform: translateX(100%);
  transition: transform 0.35s ease-in-out;
}

.modal.modal-drawer.show .modal-dialog {
  transform: translateX(0);
}

.modal-drawer .modal-content {
  height: 100%;
  border-radius: 0;
  background-color: #000;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

.modal-drawer .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  padding-bottom: 1rem;
}

.modal-drawer .nav-link {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0.75rem 0;
  color: white !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
  text-align: center;
}

.modal-drawer .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.card {
  border-radius: 0.75rem;
  border: 1px solid #333;
  background-color: #000 !important;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.form-label {
  color: #ccc;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-control,
.form-select {
  background-color: #111;
  color: #fff;
  border: 1px solid #444;
  font-size: 0.9rem;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #8729A2;
  box-shadow: 0 0 0 0.15rem rgba(13, 202, 240, 0.25);
}

.form-check-input {
  background-color: #222;
  border-color: #444;
  width: 2.25rem;
  height: 1.25rem;
  transform: scale(1.3);
  margin-right: 0.5rem;
}

.form-check-input:checked {
  background-color: #8729A2;
  border-color: #8729A2;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(135, 41, 162, 0.4);
}

.form-check-label {
  color: #e0e0e0;
  font-size: 0.9rem;
  padding-left: 0.5rem;
}

.nav-tabs .nav-link {
  color: #aaa !important;
  border: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.nav-tabs .nav-link.active {
  color: #fff !important;
  border-bottom: 2px solid #8729A2;
  background-color: transparent;
}

@media (max-width: 576px) {

      .modal-narrow {
    max-width: 320px;
  }
  .form-control,
  .form-select {
    font-size: 1rem;
  }

  .card-title {
    font-size: 1.1rem;
  }
}

.scroll-charts {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  max-width: 100%;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-charts::-webkit-scrollbar {
  display: none;
}

.chart-wrapper {
  flex-shrink: 0;
  scroll-snap-align: center;
  width: 100%;
  max-width: 420px;
}

.donut-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.donut-indicators .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #888;
  opacity: 0.4;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.donut-indicators .dot.active {
  background-color: #fff;
  opacity: 1;
}

@media (min-width: 768px) {
  .modal-narrow {
    max-width: 320px;
  }
}

@media (min-width: 992px) {

      .modal-narrow {
    max-width: 320px;
  }
  .scroll-charts {
    overflow-x: hidden;
    scroll-snap-type: none;
    flex-wrap: wrap;
    justify-content: center;
  }

  .chart-wrapper {
    scroll-snap-align: none;
    flex: 1 1 30%;
    max-width: 33%;
  }

  .donut-indicators {
    display: none;
  }
}

h5.text-light.mb-3.text-start {
  padding: 15px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.table-header h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
  white-space: nowrap;
}

.dataTables_filter {
  margin-left: auto;
}

.dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0;
}

.dataTables_filter label::before {
  content: none;
}

.dataTables_filter input[type="search"] {
  background-color: #000;
  color: #fff;
  padding: 0.25rem 0.5rem;
  max-width: 180px;
  width: 100%;
  border: 1px solid #444;
  border-radius: 0.375rem;
}

div.dataTables_wrapper div.dataTables_paginate {
  font-size: 14px;
  margin-top: 1rem;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
  margin: 0;
  gap: 0.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.page-link {
  background-color: #000;
  color: #aaa;
  border: 1px solid #333;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  outline: none;
  box-shadow: none;
}

.page-link:hover {
  background-color: #111;
  color: #fff;
}

.page-item.active .page-link,
.page-link.active {
  background-color: #000;
  color: #aaa;
  font-weight: bold;
}

.page-item.disabled .page-link {
  background-color: #111;
  color: #555;
  cursor: not-allowed;
  opacity: 0.5;
  border: 1px solid #333;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination > li {
  margin: 0;
}

.active>.page-link, .page-link.active {
    border: none;
}

.page-item.active .page-link, .page-link.active {
  border: 1px solid #222;
}

.modal-dialog.modal-narrow {
  margin: auto;
}

.table-dark,
.table-dark th,
.table-dark td {
    background-color: #000 !important;
    color: #fff;
    border: none;
}

@keyframes pulseSuccess {
  from {
    box-shadow: 0 0 10px rgba(0,255,100,0.4);
    background-color: rgba(0,255,100,0.05);
  }
  to {
    box-shadow: 0 0 25px rgba(0,255,100,0.7);
    background-color: rgba(0,255,100,0.15);
  }
}

#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

.glow-red {
    text-shadow: 0 0 5px red, 0 0 10px red, 0 0 20px darkred;
}

.modal.fade .modal-dialog {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s ease;
}
.modal.fade.show .modal-dialog {
  opacity: 1;
  transform: scale(1);
}


.terminal-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.terminal-line.fade-out {
  opacity: 0;
}

.terminal-line::after {
  content: "_";
  animation: blink 1s steps(1) infinite;
  margin-left: 4px;
}

#redFadeOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgb(255, 234, 0) 40%, rgb(255, 38, 0) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 1049;
}

#redFadeOverlay.flash {
  animation: flashPulse 0.15s ease-in-out;
}

@keyframes flashPulse {
  0% { background-color: white; opacity: 1; }
  100% { background-color: transparent; opacity: 0.4; }
}

body.red-mode {
  background-color: black !important;
  color: #ffdddd !important;
}

body.red-mode .modal-content {
  background-color: black !important;
  color: #ffdddd !important;
  border-color: red !important;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(135, 41, 162, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(135, 41, 162, 0.9);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(135, 41, 162, 0.4);
    }
}

.glow-btn {
    animation: pulseGlow 1.6s infinite;
    transition: transform 0.3s ease;
}

#terminalOutput {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.terminal-line {
  font-family: monospace;
  font-size: 1rem;
  color: #ff4c4c;
  padding: 0.4rem 0.75rem;
  border: 2px solid #ff4c4c;
  border-radius: 6px;
  background-color: #111;
  box-shadow: 0 0 6px #ff4c4c66;
  white-space: pre;
  max-width: 520px;
  width: 100%;
  text-align: left;
}

.cursor {
  display: inline-block;
  width: 8px;
  background-color: #ff4c4c;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes shakeText {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shake-text {
  display: inline-block;
  animation: shakeText 0.75s infinite;
}

.share-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.share-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(1000%) invert(1);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.share-icon:hover img {
    filter: brightness(0);
    transform: scale(1.1);
}

.share-icon.x           { background-color: #8729A2; }
.share-icon.reddit      { background-color: #ff4500; }
.share-icon.facebook    { background-color: #1877f2; }
.share-icon.telegram    { background-color: #0088cc; }
.share-icon.discord     { background-color: #5865f2; }
.share-icon.bitcointalk { background-color: #f7931a; }

.social-icon {
  height: 16px;
  width: 16px;
  filter: invert(1);
}

.selectable-badge {
    cursor: pointer;
    user-select: none;
    border: 1px solid #666;
    transition: all 0.2s ease;
}

.selectable-badge:hover {
    opacity: 0.9;
    box-shadow: 0 0 4px #999;
}

.toast.text-bg-primary {
  background-color: #8729a2 !important;
  color: #fff !important;
}

.toast.text-bg-primary a {
  color: #fff !important;
  text-decoration: underline;
}

.toast.text-bg-primary a:hover {
  color: #e0c3f6 !important;
  text-decoration: underline;
}

.toast.text-bg-primary .btn-close {
  filter: invert(1) grayscale(1) brightness(200%);
}

.upgrade-list,
.connect-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.upgrade-list li,
.connect-list li {
  display: flex;
  gap: 0.6em;
  padding: 0.3em 0 0 1.75em;
  font-size: 0.95rem;
}

.upgrade-list li::before,
.connect-list li::before {
  content: attr(data-icon);
  display: inline-block;
  text-align: center;
  margin-right: 0.5em;
  font-size: 1.1rem;
}

.block-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
}

.block-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: #000;
    color: #fff;
    border: 1px solid #333;
    padding: 20px;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    font-family: monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    white-space: normal;
    text-align: center;
}

.block-card .code {
    display: block;
}

.block-card .small {
    font-size: 12px;
    font-weight: normal;
}

.block-card.confirmed {
    background: linear-gradient(to top, #6f42c1, #7b4fd3);
}

.block-card.mempool {
    background: linear-gradient(to top, #198754, #20c997);
}

.block-scroll-wrapper {
    position: relative;
    overflow: hidden;
}

.block-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}

.block-scroll-fade {
    position: absolute;
    right: 0;
    top: 0;
    width: 60px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to right, transparent, black);
}

.block-card.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.block-pending {
  animation: pulseGlowWhite 1.6s infinite ease-in-out;
  border-radius: 0.5rem;
  background: linear-gradient(to right, #8729A2, #000);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.block-pending .block-height {
  font-size: 1.25rem;
  font-weight: bold;
  display: block;
}

.block-pending .building-label {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 2px;
  display: block;
}

.linechart-wrapper .chart-container {
  width: 100%;
  height: 300px;
}

.bg-primary {
    background-color: #8129A2 !important;
}

.btn-primary {
    background-color: #8129A2 !important;
    border-color: #8129A2 !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #6a2187 !important;
    border-color: #6a2187 !important;
}

.btn-outline-primary {
    color: white !important;
    border-color: #8129A2 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #8129A2 !important;
    color: white !important;
    border-color: #8129A2 !important;
}

input:checked + label[for="modeRealtime"] {
    background-color: #8129A2 !important;
    color: white !important;
    border-color: #8129A2 !important;
}

input:checked + label[for="modeHistorical"] {
    background-color: #8129A2 !important;
    color: white !important;
    border-color: #8129A2 !important;
}

.linechart-wrapper {
    position: relative;
}

.chart-empty-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.chart-empty-overlay button {
  z-index: 1060;
}

.modal-dialog.modal-narrow {
    margin: auto;
}

span.badge.bg-primary {
    font-size: 12px;
}
