.card-price {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(39, 39, 39, 0.349);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgb(0, 0, 0);
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    color: #f3f5f7;
    white-space: nowrap;
}

.card-price:empty {
    display: none;
}

.price-token {
    width: 22px;
    height: 22px;
    flex: 0 0 20px;
    background-image: url("token.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.price-value {
    display: inline-block;
    line-height: 1;
}

.discord-icon {
    width: 20px;
    height: 20px;
    display: block;
}

#discordBtn:hover {
    color: #5865F2;
}

.card-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.card-viewer img {
    max-width: min(90vw, 500px);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.55),
        0 10px 40px rgba(0, 0, 0, 0.45);
    cursor: default;
    animation: cardZoom 0.18s ease;
}

@keyframes cardZoom {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.manual-popup-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 500;
}

.manual-popup-overlay.open {
    display: flex;
}

.manual-popup {
    width: 460px;
    max-width: 92vw;
    max-height: 82vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 18px;
    background: #11141c;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

.manual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.manual-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.close-manual-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
    transition: 0.18s ease;
}

.close-manual-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.manual-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.manual-section h4 {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.manual-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.manual-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.manual-row span {
    min-width: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #dfe5f0;
}

.manual-row p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.manual-note {
    margin-top: 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.58);
}