:root {
  --dc34-blue: #47a;
  --dc34-cyan: #6ce;
  --dc34-green: #283;
  --dc34-gold: #cb4;
  --dc34-coral: #e67;
  --dc34-magenta: #a37;
  --dc34-silver: #bbb;
  --dc34-text: #eef3f5;
  --dc34-muted: #aab3bc;
  --dc34-line: rgba(108, 204, 238, 0.22);
  --dc34-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

body {
  color: var(--dc34-text);
  background:
    radial-gradient(circle at 12% 12%, rgba(108, 204, 238, 0.14), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(170, 51, 119, 0.12), transparent 24%),
    radial-gradient(circle at 72% 78%, rgba(34, 136, 51, 0.12), transparent 24%),
    linear-gradient(180deg, #020304 0%, #07080b 36%, #0d1014 100%);
  padding-top: 116px;
}

a {
  color: var(--dc34-cyan);
}

a:hover,
a:focus {
  color: #fff;
}

.defcoin-legacy-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: linear-gradient(135deg, rgba(20, 35, 51, 0.96), rgba(12, 12, 16, 0.97));
  border-bottom: 1px solid rgba(108, 204, 238, 0.18);
  box-shadow: var(--dc34-shadow);
}

.defcoin-legacy-topbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem;
}

.defcoin-legacy-toggle {
  color: var(--dc34-silver);
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1.35rem;
  padding: 0.25rem 0.45rem;
}

.defcoin-legacy-toggle:hover,
.defcoin-legacy-toggle:focus {
  color: #fff;
  outline: none;
}

.defcoin-legacy-home-link {
  color: var(--dc34-silver);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.defcoin-legacy-home-link:hover,
.defcoin-legacy-home-link:focus {
  color: #fff;
  text-decoration: none;
}

#page-header-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  padding-top: clamp(0.85rem, 1.45vw, 1.2rem);
  padding-bottom: 0.45rem;
}

#page-title-container {
  min-width: 0;
  flex: 1 1 auto;
}

#page-title {
  color: var(--dc34-gold) !important;
  font-size: clamp(2.15rem, 3.25vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

#page-header-container .sub-page-header {
  max-width: 58rem;
  color: var(--dc34-muted) !important;
  line-height: 1.35;
}

.defcoin-legacy-page-branding {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: clamp(0.7rem, 1.8vw, 1.2rem);
  margin-left: auto;
  min-width: 0;
}

.defcoin-legacy-slogan {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0;
  min-width: 0;
  max-width: min(42vw, 37rem);
}

.defcoin-legacy-slogan-copy {
  color: var(--dc34-text);
  font-size: 1.04rem;
  line-height: 1.18;
  white-space: normal;
}

.defcoin-legacy-logo img {
  display: block;
  width: auto;
  height: clamp(5.35rem, 8vw, 6.85rem);
  max-height: none;
}

@media (min-width: 992px) {
  .defcoin-legacy-topbar {
    gap: 0.95rem;
    padding: 0.65rem 1.15rem;
  }

  .defcoin-legacy-slogan {
    max-width: min(42vw, 37rem);
  }

  .defcoin-legacy-slogan-copy {
    font-size: 1.04rem;
    line-height: 1.18;
  }
}

.defcoin-legacy-menu {
  padding: 0.2rem 1rem 0.9rem;
  border-top: 1px solid rgba(108, 204, 238, 0.12);
}

.defcoin-legacy-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.75rem;
  color: var(--dc34-silver);
  border-radius: 0.7rem;
}

.defcoin-legacy-menu .nav-link:hover,
.defcoin-legacy-menu .nav-link:focus,
.defcoin-legacy-menu li.active > .nav-link {
  color: #fff;
  background: linear-gradient(90deg, rgba(68, 119, 170, 0.24), rgba(108, 204, 238, 0.08));
  box-shadow: inset 2px 0 0 var(--dc34-gold);
  text-decoration: none;
}

.card,
.card.card-default,
.det-col,
.dropdown-menu {
  background: linear-gradient(180deg, rgba(30, 30, 36, 0.96), rgba(16, 16, 20, 0.98)) !important;
  border: 1px solid rgba(108, 204, 238, 0.14) !important;
  box-shadow: var(--dc34-shadow);
}

.card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(108, 204, 238, 0.14) !important;
}

.card-header strong,
h1,
h2,
h3,
h4,
h5,
h6,
.table thead th {
  color: var(--dc34-gold) !important;
}

.card-header strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.card-body,
.card-body label,
.text-muted,
.table,
.dataTables_info,
.paginate_button {
  color: var(--dc34-muted) !important;
}

.table thead th,
.table-bordered th,
.table-bordered td {
  border-color: rgba(108, 204, 238, 0.14) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(255, 255, 255, 0.015) !important;
}

.table-hover > tbody > tr:hover > * {
  background-color: rgba(108, 204, 238, 0.08) !important;
  color: var(--dc34-text) !important;
}

.form-control,
.form-control:focus {
  color: var(--dc34-text) !important;
  background: rgba(8, 10, 13, 0.9) !important;
  border-color: rgba(108, 204, 238, 0.18) !important;
  box-shadow: none !important;
}

.btn-success {
  color: #070809 !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--dc34-cyan), var(--dc34-blue)) !important;
}

.btn-success:hover,
.btn-success:focus {
  filter: brightness(1.06);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: linear-gradient(135deg, rgba(20, 35, 51, 0.96), rgba(12, 12, 16, 0.97)) !important;
  border-top: 1px solid rgba(108, 204, 238, 0.18) !important;
}

.footer-version-copy {
  margin-bottom: 0;
  line-height: 1.25;
  white-space: normal;
}

.footer-status-links {
  gap: 0.18rem;
  width: 100%;
}

.footer .nav-link,
.footer a,
.footer label {
  color: var(--dc34-silver) !important;
}

.footer .nav-link:hover,
.footer a:hover {
  color: #fff !important;
}

.col-md-2.col-sm-12 img {
  display: block;
  margin: 0 auto;
  max-height: 148px;
  width: auto;
}

@media (max-width: 991px) {
  body {
    padding-top: 98px;
  }

  .defcoin-legacy-topbar {
    gap: 0.55rem;
    padding: 0.55rem 0.8rem;
  }

  #page-header-container {
    gap: 0.85rem;
    padding-top: 0.8rem;
  }

  .defcoin-legacy-page-branding {
    gap: 0.65rem;
  }

  .defcoin-legacy-slogan {
    max-width: min(58vw, 22rem);
  }

  .defcoin-legacy-slogan-copy {
    font-size: 0.84rem;
  }

  .footer.fixed-bottom {
    display: none !important;
  }
}

@media (max-width: 575px) {
  #page-header-container {
    flex-wrap: wrap;
    gap: 0.7rem;
    padding-top: 0.7rem;
  }

  .defcoin-legacy-page-branding {
    width: 100%;
    justify-content: flex-start;
    gap: 0.55rem;
  }

  #page-title {
    font-size: clamp(1.9rem, 8.4vw, 2.35rem);
  }

  .defcoin-legacy-slogan {
    max-width: min(62vw, 17rem);
    align-items: flex-start;
    text-align: left;
  }

  .defcoin-legacy-logo img {
    height: clamp(3.4rem, 16vw, 4.2rem);
  }
}

@media (max-width: 767.98px) {
  .footer {
    padding-top: 0.35rem;
    padding-bottom: 0.45rem;
  }

  .footer-status-links {
    gap: 0.05rem;
  }
}
