body {
    margin: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-content: stretch;
    justify-content: space-between;
    align-items: stretch;
    background-color: black;
    color: white;
}

H3 {
    font-family: "Gidole", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.flexbox-row {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-content: stretch;
    align-content: stretch;
    -webkit-align-items: basel
}

.site-header {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
	font-size: 1.4rem;
	color: white;
	font-variant: small-caps;
	font-weight: normal;	
	background-size: auto 13px;
	background-position: left 9px;
	background-repeat: no-repeat;
	padding-left: 52px;	
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 43 13'%3E%3Cpath d='M0.000,0.1000 L26.1000,0.1000 C26.1000,0.1000 43.1000,1.125 43.1000,7.000 C43.1000,12.875 26.1000,13.000 26.1000,13.000 L0.000,13.000 C0.000,13.000 25.1000,13.063 25.1000,7.000 C25.1000,0.937 0.000,0.1000 0.000,0.1000 Z' fill='%23af69f4'/%3E%3C/svg%3E");
}

.site-header a {
    text-decoration: none;
    color: white;
    font-variant: small-caps;
}

.site-header a:hover {
    color: white;
    text-shadow: rebeccapurple 0 0 15px;
}

.site-header .main-nav {
    display: flex;
    gap: 1rem;
    margin-top: 0;
}

.site-header .main-nav a {
    font-size: 1.4rem;
    display: inline-block;
    position: relative;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(0deg, #af69f4 0%, #af69f4 50%, #fff 50%, #fff 100%);
    background-size: 100% 200%;
    background-position: 0 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    transition: background-position 0.8s cubic-bezier(.65,.05,.36,1);
}

.site-header .main-nav a:hover,
.site-header .main-nav a:focus {
    background-position: 0 0;
}

#points-info {
    background-color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
}

main {
    padding: 1rem;
    text-align: center;
}

footer {
    background-color: #f1f1f1;
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 7rem;
    margin-top: 7.5rem;
    color: black;
    font-size: 0.8rem;
}

footer .social-links {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}
.social-btn:hover {
  
}
.social-btn svg {
  width: 32px;
  height: 32px;
  display: block;
  fill: #515E64;
  transition: fill 0.2s;
}
.social-btn:hover svg {
  fill: #229ED9;
}

#mini-dashboard {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 1rem;
    margin-bottom: 1rem;
}

#mini-dashboard .btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
}

#daily-reward {
    margin-bottom: 1.5rem;
}

#daily-reward h4 {
    font-size: 1.2rem;
}

.success-msg {
    color: green;
    margin-top: 0.5rem;
}

#leaderboard {
    max-width: 720px;
    color: white;
    margin-left: auto;
    margin-right: auto;
}

#leaderboard table {
    width: 100%;
    border-collapse: collapse;
}

#leaderboard th,
#leaderboard td {
    border-bottom: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

.tx-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.tx-table th,
.tx-table td {
    border-bottom: 1px solid #ddd;
    padding: 0.25rem;
    text-align: left;
}

.transparent-card H3 {
	text-align: center;
	background-color: #1c1919;
	padding: 2rem;
	margin-bottom: 3rem;
}

.transparent-card .tx-table th {	
	padding: 0 0.25rem 1.2rem 0 !important;
	text-align: left;
	border: 0px !important;
}

.card{
    position:relative;
    padding-bottom:2.5rem;                 
    border-radius:1.25rem;          /* скругление углов */
    background:#0c0e1a;             /* тёмный фон внутри */
    background: linear-gradient(-45deg,rgba(48, 16, 74, 1) 0%, rgba(12, 14, 26, 1) 50%, rgba(29, 82, 84, 1) 100%);
    box-shadow:
        0 0 8px  rgba(122, 0, 255,.35),   /* лёгкий «сияющий» ореол */
        0 0 18px rgba(0, 236, 255,.25);   /* второй, крупнее */
    overflow:hidden;                /* чтобы псевдо-элемент не выпирал */
}

/* градиентная рамка */
.card::before{
    content:"";
    position:absolute;
    inset:0;                        /* растягиваем во весь блок */
    padding:2px;                    /* толщина рамки */
    border-radius:inherit;          /* тот же радиус, что у блока */
    background: linear-gradient(135deg,
        #00ffe1 0%,
        #36a0ff 16%,
        #7b2ff7 33%,
        #ff007a 50%,
        #7b2ff7 67%,
        #36a0ff 84%,
        #00ffe1 100%);
    background-size: 200% 200%;
    background-position: 0% 0%;
    transition: background-position 0.2s cubic-bezier(.37,.01,.63,.99);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);     /* две маски: внутренняя / внешняя */
    -webkit-mask-composite:xor;        /* поддержка Chrome/Safari */
            mask-composite:exclude;    /* поддержка Firefox */
    pointer-events:none;               /* чтобы рамка не перехватывала клики */
}

@keyframes card-gradient-move {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.card:hover::before {
    animation: card-gradient-move 2.5s linear infinite alternate;
}

/* если нужен едва заметный внутренний градиент-блик */
.card::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    background:radial-gradient(120% 120% at 50% 0,
        rgba(255,255,255,.06) 0%, rgba(0,0,0,0) 70%);
    pointer-events:none;
}

.card H4 {
	margin: 0;
	padding: 15px;
	background-color: #2e595e82;
	text-align: center;
	margin-bottom: 2rem;
}

.inline_icon {  
  background-repeat: no-repeat;
  background-position: right center;
}

.dp_score {
  padding-right: 22px;
  background-image: url('/static/dp-min.png');
}

.icon_maz {
  padding-right: 22px;
  background-image: url('/static/maz-min.png');
}

.icon_dokcoin {
  padding-right: 18px;
  background-image: url('/static/dcoin-min.png');
}

.icon_true_vision {
  padding-right: 18px;
  background-image: url('/static/true_vision.png');
}

#crypto-address {
    cursor: pointer;
}

sup.user-level {
    color: black;
    background: white;
    padding: 0 0.18rem;
    border-radius: 3px;
    margin-left: 5px;
    font-size: 0.75rem;
    cursor: help;
}

#crypto-address.copied {
    color: green;
}

#rewards {
    max-width: 720px;
    margin: 5rem auto 2rem auto;
}

#rewards .reward-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.reward-card {
    width: 160px;
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.reward-card.glow {
    animation: reward-glow 1s ease-out;
}

@keyframes reward-glow {
    0% { box-shadow: 0 0 4px rgba(0,0,0,0.4); }
    50% { box-shadow: 0 0 10px 4px #8fff78; }
    100% { box-shadow: 0 0 4px rgba(0,0,0,0.4); }
}

.reward-card .reward-desc {
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.reward-card button {
    margin-top: 0.5rem;
    width: 100%;
}

.reward-card .reward-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 0.25rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.reward-card .reward-items {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.reward-card .reward-items img {
    max-height: 46px;
}

/* Codex Page */
.codex-body {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    padding: 3rem 2.5rem;
    background-color: whitesmoke;
    color: #464646;
    margin-top: 3rem;
    
    font-family: "Gidole", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: left;
}

.codex-body H3 {
   margin-left: -40px;
   padding-left: 20px;
   border-left: 20px solid #b776d5;
}

@media (max-width: 600px) {
    .codex-body {
        padding: 0 0.5rem;
    }
}

.status-online {
    color: green;
}

.status-offline {
    color: gray;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}
.status-dot.online {
    background-color: #0f0;
}
.status-dot.offline {
    background-color: #f00;
}

.network-container {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.scan-container {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

#user-card .user-info {
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0 1rem 1rem 1rem;
}

#user-card .user-info li {
    margin-bottom: 0.5rem;
}

.xs-text {
    font-size: x-small;
}

.s-text {
    font-size: 0.9rem;
}

.site-footer {
    color: black;
}

@media (max-width: 600px) {
    .site-header .main-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-header .main-nav a {
        display: block;
        margin: 0.25rem 0;
    }
}

#notify-area {
    position: fixed;
    top: 4rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

#notify-area .notify-msg {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    max-width: 240px;
}

@media (max-width: 600px) {
    #notify-area {
        top: auto;
        bottom: 1rem;
        right: 50%;
        transform: translateX(50%);
        align-items: center;
    }
}

#welcome-block {
    max-width: 720px;
    margin: 7rem auto 1.5rem auto;
    text-align: center;
}

#welcome-block > div {
	background-color: #1c1919;
	display: inline-block;
	padding: 0.2rem 2rem 1rem;
	border-radius: 10px;
}

#welcome-block #user-info {
    font-size: 2.5rem;
}

#welcome-block .inline_icon {
    margin-left: 15px;
    margin-right: 15px;
}

#converter {
    max-width: 720px;
    margin: 0 auto 2rem auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 0.5rem;
}

#converter h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

.converter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.converter-form input {
    width: 5rem;
    padding: 0.25rem;
}

#inventory {
    max-width: 720px;
    margin: 2rem auto;
    text-align: center;
}

.scan-container #inventory {
    margin: 5rem auto 2rem;
}

.inventory-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.inventory-items .item-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.inventory-items .item-slot img {
    max-height: 46px;
    margin-bottom: 0.25rem;
}

.inventory-items .item-title {
    font-size: 0.75rem;
}

.item-view {
	text-align: center;
	color: white;
	display: inline-block;
	background-color: #090808;
	padding: 10px;
	border-radius: 5px;
	max-width: 390px;
}

.item-view img {
    max-width: 280px;
    margin-bottom: 1rem;
}

.item-view div.imageblock {
	background-color: black;
	padding: 3rem;
}

.item-view H3 {
	margin-top: 2rem;
}

.item-view p {
	padding-left: 2rem;
        padding-right: 2rem;
}


.item-view .items_scores {
        margin-top: 2rem;
}

#vault-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    #vault-container {
        flex-direction: row;
    }
    #vault-rating,
    #vault-collectors {
        width: 50%;
    }
}

#vault-table img { max-height: 46px; }
.owned-label { color: #8fff78; font-size: 0.75rem; }

#vault-rating,
#vault-collectors {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#vault-table .item-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

/* Секция ближайших узлов на странице скана */
#nearest {
    max-width: 720px;
    margin: 1rem auto;
    text-align: center;
}

#nearest H4 {
    margin: 0;
}

.nearest-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.nearest-list li a {
    display: inline-block;
    padding: 0.5rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    font-size: smaller;
    letter-spacing: 2px;
    font-variant: full-width;
    margin-top: 3px;
}

.addr-badge {
    display: inline-block;
    padding: 0.5rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    font-size: smaller;
    letter-spacing: 2px;
    font-variant: full-width;
    margin-top: 3px;
}

table .addr-badge {
    font-size: 0.7rem;
    color: #808080;
}

.top-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #0c0e1a;
    background: linear-gradient(-45deg, rgba(48, 16, 74, 1) 0%, rgba(12, 14, 26, 1) 50%, rgba(29, 82, 84, 1) 100%);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

tr:hover .highlight {
	color: #de546c;
}
