.xd-profile {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    color: var(--text-color);
}

.xd-profile-image {
    position: relative;
    width: 150px;
    height: 150px;
    cursor: pointer;
}
.xd-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.xd-avatar:hover {
    transform: scale(1.05);
}


.xd-profile-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    z-index: -1;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.xd-profile-info {
    position: relative;
}

.xd-name {
    font-size: 3rem;
    margin: 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.xd-username {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

.xd-bio {
    font-style: italic;
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 2px solid var(--secondary-color);
}

.xd-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.xd-details span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.xd-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;

}

.xd-action-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    position: relative;
}

.xd-action-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.xd-action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    right: calc(100% - 5px);
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.xd-action-btn:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .xd-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .xd-profile-image {
        margin: 0 auto;
    }

    .xd-actions {
        flex-direction: row;
        justify-content: center;
        margin-top: 1rem;
    }
}


@media (min-width: 1024px) {
    .xd-action-btn:hover::before,
    .xd-action-btn:hover::after {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 1023px) {
    .xd-action-btn::before,
    .xd-action-btn::after {
        display: none;
    }
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(to right, var(--primary-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--primary-color) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#modalImage {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.xd-profile-stats {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.xd-xidrum-ant-section, .xd-chart-section {
    margin-bottom: 2rem;
}

h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}



.xd-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.xd-stat-item {
    text-align: center;
    flex-basis: calc(20% - 1rem);
    margin-bottom: 1rem;
}

.xd-stat-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.xd-stat-item span {
    display: block;
    font-size: 0.8rem;
}

.xd-stat-item strong {
    display: block;
    font-size: 1.2rem;
}

.xd-chart {
    height: 300px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .xd-stat-item {
        flex-basis: calc(33.33% - 1rem);
    }
}



@media (max-width: 480px) {
    .xd-stat-item {
        flex-basis: 100%;
    }

    .xd-chart {
        height: 200px;
    }
}

.xd-keys-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.xd-keys-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.xd-key-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.xd-key-item span {
    flex: 0 0 100px;
    font-weight: bold;
    color: var(--secondary-color);
}

.xd-key-input-wrapper {
    display: flex;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.xd-key-input-wrapper input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    font-size: 1rem;
    font-family: monospace;
}

.xd-copy-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.xd-copy-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.xd-copy-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .xd-key-item {
        flex-direction: column;
        align-items: stretch;
    }

    .xd-key-item span {
        margin-bottom: 0.5rem;
    }

    .xd-key-input-wrapper {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .xd-keys-section {
        padding: 1rem;
    }

    .xd-key-item span {
    }

    .xd-key-input-wrapper input {
        font-size: 0.9rem;
    }
}