.profile-wrapper {
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: 21rem;
    position: relative;
    left: 0;
    right: 0;
    background-color: var(--box-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.username {
    display: flex;
    align-items: center;
    font-size: 23px;
    font-weight: 700;
    justify-content: center;
}

.motto {
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.button-wrap {
    margin: 10px 0;
}

.button-wrap a {
    text-decoration: none;
    display: block;
}

.column.is-3 {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    padding: 0 0.75rem;
}

.column.is-9 {
    padding: 0 0.75rem;
}

.columns {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-top: 0;
}

.button.secondary-button {
    background-color: var(--button-secondary);
    color: #ffffff;
    border: 1px solid transparent;

    &:hover {
        background-color: var(--button-secondary-hover);
    }
}

.button.green-button {
    margin-top: 10px;
    background-color: var(--button-green);
    color: #fff;
    border: 1px solid transparent;

    &:hover {
        background-color: var(--button-green-hover);
    }
}

.profile-avatar-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}

.avatar-wrap {
    position: relative;
    display: inline-block;
}

.avatar-wrap img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    border: none;
}

.avatar-wrap .badge i {
    width: 14px;
    height: 14px;
}

.user-stats {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stat-block {
    flex: 1;
    min-width: 60px;
    text-align: center;
}

.stat-block span {
    display: block;
}

.stat-block span:first-child {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-block span:last-child {
    font-size: 0.75rem;
    opacity: 0.8;
}

.button-wrap {
    margin: auto;
    width: 100%;
}

.green-button {
    margin-bottom: 1rem;
}

.button-wrap .button {
    height: 41px;
    font-weight: 500;
    border-radius: 8px;
    font-size: 16px;
}

.button.is-fullwidth {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.button.raised {
    box-shadow: var(--box-shadow);

    &:hover {
        transform: translateY(-1px);
        box-shadow: var(--box-shadow);
    }

    &:active {
        box-shadow: var(--box-shadow);
    }
}

@media (max-width: 768px) {
    .settings-wrapper {
        gap: 15px;
    }

    .profile-wrapper {
        margin: 0;
        max-width: 100%;
        padding: 10px 24px;

    }
}